﻿using System.ComponentModel.Composition;
using Cubicle.Core.Interfaces;
using Cubicle.Core.Processors;

namespace Cubicle.Excel.Processors
{
    [Export("Cubicle.Excel.Processors.ConditionValues", typeof(IProcessor<object>))]
    [ExportMetadata("Name", "ConditionValues")]
    [ExportMetadata("Description", "Identify value types for marshalling.")]
    public class ConditionValues : ConditionalQueue<object>
    {

        public override bool Condition(object request)
        {
            var type = request.GetType();
            return type.IsValueType;
        }

    }
}